package com.smh.a02innerclassdemo2;

public class Test {
    public static void main(String[] args) {
        Outer outer = new Outer();

//        Outer.Inner inner = new Outer().new Inner();
//        Outer.Inner inner1 = outer.new Inner();
        Object inner = outer.getInner();
        //inner就是内部类的实例化
        outer.show((Outer.Inner) inner);

        ((Outer.Inner) inner).show();

        Outer.Inner inner1 = new Outer().new Inner();


    }
}
